﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LJTest.entity
{
    class Datalog : IComparable
    {
        public Datalog(string Key, double Value)
        {
            this.Key = Key;
            this.value = Value;
        }
        private string Key;

        public string key
        {
            get { return Key; }
            set { Key = value; }
        }
        private double Value;

        public double value
        {
            get { return Value; }
            set { Value = value; }
        }

        public int CompareTo(Object bb)
        {
            if (!(bb is Datalog))
            {
                throw new ArgumentException("Argument not a customer",    "right");
            }
            Datalog datalog = (Datalog)bb;
            return this.value.CompareTo(datalog.value);
           
        }
    }
}
